package com.granada.mapper;

import com.granada.entity.SysUserRole;

import java.util.List;
public interface SysUserRoleMapper {
    int deleteByPrimaryKey(Long id);
    int insert(SysUserRole record);
    int insertSelective(SysUserRole record);
    SysUserRole selectByPrimaryKey(Long id);
    int updateByPrimaryKeySelective(SysUserRole record);
    int updateByPrimaryKey(SysUserRole record);
    int removeByRoleId(Long roleId);
    List<Long> getRoleIdsByUserId(Long userId);
    int batchUserRole(List<SysUserRole> list);
    int removeByUserId(Long userId);
    List<Long> getInfoByUserIdByRoleId( Long roleId);
    List<Long> getUserIdsByRoleIds(List<Long> roleIds);
}
